package com.ljf.config.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

/**
 * 发号器配置状态对象  config_dat_impulse_sender_condition
 *
 * @author LJF
 * @since 2025-01-18
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("发号器配置状态")
@EqualsAndHashCode(callSuper = true)
@TableName("config_dat_impulse_sender_condition")
public class ConfigDatImpulseSenderCondition extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link ConfigDatImpulseSenderCondition#COL_ID}
	 */
	@TableId(value="id", type= IdType.AUTO)
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(50)
	 * 注释: 编码
	 * {@link ConfigDatImpulseSenderCondition#COL_CODE}
	 */
	@TableField("code")
	@JsonProperty("code")
	@ApiModelProperty(value = "编码")
	private String code;

	/**
	 * Java类型: Integer
	 * 数据库类型: smallint unsigned
	 * 注释: 排序
	 * {@link ConfigDatImpulseSenderCondition#COL_SORT}
	 */
	@TableField("sort")
	@JsonProperty("sort")
	@ApiModelProperty(value = "排序")
	private Integer sort;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(10)
	 * 注释: 当前值
	 * {@link ConfigDatImpulseSenderCondition#COL_CURRENT_VALUE}
	 */
	@TableField("current_value")
	@JsonProperty("currentValue")
	@ApiModelProperty(value = "当前值")
	private String currentValue;

	/**
	 * Java类型: Date
	 * 数据库类型: datetime
	 * 注释: 当前时间
	 * {@link ConfigDatImpulseSenderCondition#COL_RECORD_DATE}
	 */
	@TableField("record_date")
	@JsonProperty("recordDate")
	@ApiModelProperty(value = "当前时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date recordDate;


	/**
	 * ID
	 * {@link ConfigDatImpulseSenderCondition#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 编码
	 * {@link ConfigDatImpulseSenderCondition#code}
	 */
	public static final String COL_CODE = "code";
	/**
	 * 排序
	 * {@link ConfigDatImpulseSenderCondition#sort}
	 */
	public static final String COL_SORT = "sort";
	/**
	 * 当前值
	 * {@link ConfigDatImpulseSenderCondition#currentValue}
	 */
	public static final String COL_CURRENT_VALUE = "current_value";
	/**
	 * 当前时间
	 * {@link ConfigDatImpulseSenderCondition#recordDate}
	 */
	public static final String COL_RECORD_DATE = "record_date";

}
